home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / adg_4_6.zip / CNTL-DE.H < prev    next >
Text File  |  1991-02-21  |  2KB  |  53 lines

  1. /****************************************************************************
  2. Module name: Cntl-DE.H
  3. Programmer : Jeffrey M. Richter.
  4. *****************************************************************************/
  5.  
  6. // This function should be called first in the ClassInfo function to 
  7. // initialize the new control.
  8. GLOBALHANDLE FAR PASCAL ControlInfo (WORD wVersion, LPSTR szClass, LPSTR szTitle);
  9.  
  10.  
  11.  
  12. // This function should be called repeatedly to add new control types to
  13. // the structure returned by the ControlInfo function.  This function should
  14. // be called in the ClassInfo function.
  15. BOOL FAR PASCAL AddControlType (GLOBALHANDLE hMem, WORD wType,
  16.             WORD wWidth, WORD wHeight, DWORD dwStyle, LPSTR szDescr);
  17.  
  18.  
  19.  
  20. // This function displays the control's style dialog box and should be called
  21. // from the ClassStyle function.
  22. int FAR PASCAL ShowStyleDlg (HANDLE hInstance, LPSTR szTemplate, 
  23.                              HWND hWndParent, FARPROC fpDlgProc, LONG lParam,
  24.                              GLOBALHANDLE hCtlStyle, LPFNSTRTOID lpfnStrToId, 
  25.                              LPFNIDTOSTR lpfnIdToStr);
  26.  
  27.  
  28. // This function should only be called from the ClassDlgFn function.  It 
  29. // locks the memory block containing the CTLSTYLE structure for the selected 
  30. // control and returns the FAR address to that structure.
  31. LPCTLSTYLE FAR PASCAL CtlStyleLock (HWND hDlg);
  32.  
  33.  
  34. // This function should only be called from the ClassDlgFn function.  It 
  35. // unlocks the memory block containing the CTLSTYLE structure for the 
  36. // selected control and returns whether the block was successfully unlocked.
  37. BOOL FAR PASCAL CtlStyleUnlock (HWND hDlg);
  38.  
  39.  
  40. // This function should only be called from the ClassDlgFn function.  It 
  41. // converts the ID value for the control into a identifier string and stores
  42. // the string in the address passed in.  The number of characters in the 
  43. // string is returned.
  44. WORD FAR PASCAL GetIdString (HWND hDlg, LPSTR szId, WORD wIdMaxLen);
  45.  
  46.  
  47. // This function should only be called from the ClassDlgFn function.  It 
  48. // converts an ID string value into its numeric equivalent and stores the
  49. // numeric value in the CTLSTYLE structure for the control.  If the loword of
  50. // the result is 0, the ID is invalid, otherwise, the hiword contains the
  51. // numeric value of the ID.
  52. DWORD FAR PASCAL SetIdValue (HWND hDlg, LPSTR szId);
  53.